<?php
//include Header
$path = $_SERVER['DOCUMENT_ROOT'];
include("$path/header.php");
?>


<?php

 $bn=$_POST["bestellingsnummer"];
 echo "
 <HTML>
<head>
<meta http-equiv=\"refresh\" content=\"0; URL=bestelling.php?bn=$bn\">
</head>
<BODY>";
 $productnummer=$_POST["productnummer"]; 
 mysql_query("	DELETE
				FROM bestelregel
				WHERE bestellingsnummer=".$bn."
				AND productnummer=".$productnummer.""); 
 Print "Your selected product has been successfully deleted from the database.";
?>
</BODY>
</HTML>

<?php
//include footer
include("$path/footer.php");
?>